package com.lysj.bhp.slideshow.repository;

import com.lysj.bhp.slideshow.domin.Slideshow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/8/7--11:29
 * @Description:
 */
public interface SlideshowRepository extends JpaRepository<Slideshow,Long>, JpaSpecificationExecutor {
    /*查询状态不等于 status 从小到大排序*/
    List<Slideshow> findByStatusNotOrderByMapOrderDesc(Integer status);
    /*查询状态等于 status 从小到大排序*/
    List<Slideshow> findByStatusOrderByMapOrderDesc(Integer status);

}
